//
//  Requestable.swift
//  Asman
//
//  Created by 李旭峰 on 5/16/19.
//  Copyright © 2019 李旭峰. All rights reserved.
//

import Foundation

enum HTTPMethodType: String {
    case get = "GET"
    case post = "POST"
    case put = "PUT"
    case upload = ""
    case delete = "DELETE"
}

protocol Requestable: class {
    func openIndicator() -> Bool
    func path() -> String
    func method() -> HTTPMethodType
    func timeout() -> TimeInterval
    func server() -> Service
    func useCache() -> Bool
}
